﻿@using PraiseSystem.WebUI.Models
@model PraiseListViewModel

@{
    ViewBag.Title = "List";
}

<h2>List</h2>
@foreach (var praise in Model.Praises)
{
    <h3>
        <strong>
            @foreach (var receiver in praise.Receivers)
            {
                @receiver.Name
            }
        </strong>  
    </h3>
    <p>@praise.DoRight</p>
    <span class="pull-right label label-primary">@praise.Owner.Name</span>
}

<div class="btn-group pull-right">
    @Html.PageLinks(Model.PageInfo, n => Url.Action("List", new { page = n }))
</div>